import http from "@/utils/request";
// 登录
export const login = (data) => {
    return http.post("/rsgl/user/login", data);
};
// 获取用户list
export const getUserList = (data) => {
    return http.get("/rsgl/user/list", data);
};
// 获取用户详情
export const getUserById = (data) => {
    return http.get(`/rsgl/user/get/${data}`);
};
// 添加用户
export const addUser = (data) => {
    return http.post("/rsgl/user/add", data);
};
// 修改用户
export const updateUser = (data) => {
    return http.put("/rsgl/user/update", data);
};
// 删除用户
export const deleteUserById = (data) => {
    return http.delete(`/rsgl/user/delete/${data}`);
};